package com.demo.collection;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class ArraysAsListMethodQuestion {
    public static void main(String[] args) {
        List<Integer> list  = Arrays.asList(1,2,3,4,5);
        System.out.println("listis java.util.ArrayList,result:"+(list instanceof ArrayList));
        list.set(0,3);
        System.out.println("list:"+list);
    }
}
